package com.armrest.screen

import android.widget.ImageView
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder

class MusicAdapter : BaseQuickAdapter<HomeMenuModel,BaseViewHolder> (R.layout.itme_image_layout){
    override fun convert(holder: BaseViewHolder, item: HomeMenuModel) {
        val image=holder.getViewOrNull<ImageView>(R.id.imageView)
         image?.setImageResource(item.imageId)
    }
}